﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WCFMINERP.MODEL
{
    public class PhotoInfo
    {
        public int OrderInfoId { get; set; }
        public int Photoid { get; set; }
        public string PhotoName { get; set; }
        public string PicPath { get; set; }
        public float Width { get; set; }
        public float Height { get; set; }
        public int PixWidth { get; set; }
        public int PixHeight { get; set; }
        public int PaperTypeID { get; set; }
        public string PaperTypeName { get; set; }
        public int PaperFaceId { get; set; }
        public string PaperFaceName { get; set; }
        public int TotalNum { get; set; }
        public string OrilPicPath { get; set; }
        public string Remark { get; set; }
        public int Resolution { get; set; }
        public float WidthCM
        {
            get 
            {
                return Width * (float)2.54;
            }
        }
        public float HeightCM
        {
            get
            {
                return Height * (float)2.54;
            }
        }
        public string SizeInch
        {
            get
            {
                return Width.ToString("0.00") + "x" + Height.ToString("0.00");
            }
        }

        public string SizeCM
        {
            get
            {
                return (Width * 2.54).ToString("0.00") + "x" + (Height * 2.54).ToString("0.00");
            }
        }
    }
    public class OrderInfo
    {
        public List<PhotoInfo> PhotoList { get; set; }
        public int OrderProductId { get; set; }
        public string OrderProductName { get; set; }
        public int ProductId { get; set; }
        public string CtmName { get; set; }
        public string CompleteTime { get; set; }
        public int Status { get; set; }
        public string OrderPath { get; set; }
        public string OrilOrderPath { get; set; }
        public float Width { get; set; }
        public float Height { get; set; }
        public int productNum { get; set; }
        public int PageNum { get; set; }
        public float PrePriceCount { get; set; }
        public int Priority { get; set; }
        public string Remark { get; set; }
        public float Area { get; set; }
        public string ControlName { get; set; }
        public string CommonChargeItemName { get; set; }
        public string CommonChargeItemIdList{ get; set; }

        public string PaperTypeName { get; set; }
        public string PaperFaceName { get; set; }

        public string SizeInch
        {
            get
            {
                return Width.ToString("0.00") + "x" + Height.ToString("0.00");
            }
        }

        public string SizeCM {
            get
            {
                return (Width*2.54).ToString("0.00") + "x" + (Height*2.54).ToString("0.00");
            }
        }
        public OrderInfo()
        {
            PhotoList = new List<PhotoInfo>();
        }


    }

    public class OrderBag
    {
        public List<OrderInfo> OrderInfoList { get; set; }
        public int OrderbagID { get; set; }
        public int SerialNum { get; set; }
        public string OrderbagName { get; set; }
        public string RARName { get; set; }
        public int ShopId { get; set; }
        public DateTime OrderTime { get; set; }
        public DateTime FetchTime { get; set; }
        public int Status { get; set; }
        public int Priority { get; set; }
        public float PrePriceCount { get; set; }
        public string Remark { get; set; }
        public OrderBag()
        {
            OrderInfoList = new List<OrderInfo>();
        }
    }
}
